package com.linchong.xshop.web.superadmin.shopadmin;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author linchong
 * @desc 控制视图的转发
 * @email littlexbear@163.com
 * @create 2018-07-15 14:57
 * @CopyRight(C) https://blog.csdn.net/littlexbear
 **/

@Controller
@RequestMapping(value="shopadmin",method = RequestMethod.GET)
/**
 * 解析路由并转发到相应的html中
 */
public class ShopAdminController {
    Logger logger = LoggerFactory.getLogger(ShopAdminController.class);
    //转发页面
    @RequestMapping(value="/shopoperation")
    public String shopOperation(){
        logger.info("===============执行了转换==================");
        return "shop/shopoperation";
    }

    @RequestMapping(value="/shoplist")
    public String shopList(){
        logger.info("===============执行了==================");
        return "shop/shoplist";
    }

    @RequestMapping(value="/shopmanagement")
    public String shopManagement(){
        logger.info("===============执行了shopmanagement==================");
        return "shop/shopmanagement";
    }

    @RequestMapping(value = "/productcategorymanagement",method = RequestMethod.GET)
    private String productCategoryManage(){
        return "shop/productcategorymanagement";
    }

    @RequestMapping(value = "/productoperation")
    public String productOperation(){
        //转发至商品添加/编辑界面
        return "shop/productoperation";
    }

    @RequestMapping(value = "/productmanagement")
    public String productManagement(){
        //转发至商品管理页面
        return "shop/productmanagement";
    }
}
